.workflow-editor {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.workflow-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border-2);
}

.workflow-editor-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.workflow-canvas {
  flex: 1;
  background: var(--color-bg-1);
}

.workflow-config-panel {
  width: 400px;
  border-left: 1px solid var(--color-border-2);
  background: var(--color-bg-2);
  overflow-y: auto;
}

/* ReactFlow 自定义样式 */
.react-flow__node {
  font-size: 12px;
}

.react-flow__edge {
  stroke: var(--color-primary-6);
}

.react-flow__edge-path {
  stroke-width: 2;
}

.react-flow__controls {
  button {
    background: var(--color-bg-2);
    border-color: var(--color-border-2);

    &:hover {
      background: var(--color-bg-3);
    }
  }
}

.react-flow__minimap {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
}
